#include"Common.hpp"


int main()
{
    key_t key=ftok(itemstr.c_str(),itemnum);
    int _shareid = shmget(key, gsize, IPC_CREAT);
    char*_shmaddr = (char*)shmat(_shareid, nullptr, 0);

    int n=1;
    while (n++<15)
    {
        cout<<_shmaddr<<endl;
        sleep(1);
    }




    

    shmdt(_shmaddr);
    shmctl(_shareid, IPC_RMID, nullptr);
    return 0;
}